package com.wyp.mapper;

import com.wyp.pojo.Examinees;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ExamineesMapper {


    public int GetStuCount();

    //登录
    public Map<String,Object> findByStuaccount(String stuaccount);

    //返回所有考生信息给前端页面
    public List<Map<String,Object>> qureyAllExaminees();

    //查询考生信息
    public List<Map<String,Object>> qureyExamineesByStuname(String stuname);
    public List<Map<String,Object>> qureyExamineesByStuaccount(String stuaccount);

    //考生注册或管理员增加考生信息
    public int addExaminees(Examinees examinees);

    //更新考生信息
    public int updateExaminees(Examinees examinees);

    //删除考生信息
    public int deleteExaminees(Integer id);
}
